<template>
  <div class="detailTicket">
    <div
      class="ticket-item "
      v-for="(item,index) of info"
      :key="index">
      <div class="item-title border-bottom">
        {{item.title}}
        <span class="iconfont"></span>
      </div>
      <div class="ticket-item-children" v-if="item.children">
        <detailTicket :info="item.children"></detailTicket>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'detailTicket',
  props: {
    info: Array
  }
}
</script>
<style lang="stylus" scoped>
  .ticket-item
    padding-left 50px
    font-size 20px
    line-height 3
    position relative
    .iconfont
      content ' '
      width 25px
      height 25px
      display block
      position absolute
      left -28px
      top 16px
      background url('//s.qunarzz.com/piao/image/touch/sight/detail.png') no-repeat 0 -25px
      background-size cover
</style>
